import request from '@/utils/request'

// 查询供应商分类列表
export function listTeam(query) {
  return request({
    url: '/super/team/list',
    method: 'get',
    params: query
  })
}

// 查询供应商分类详细
export function getTeam(teamId) {
  return request({
    url: '/super/team/' + teamId,
    method: 'get'
  })
}

// 新增供应商分类
export function addTeam(data) {
  return request({
    url: '/super/team',
    method: 'post',
    data: data
  })
}

// 修改供应商分类
export function updateTeam(data) {
  return request({
    url: '/super/team',
    method: 'put',
    data: data
  })
}

// 删除供应商分类
export function delTeam(teamId) {
  return request({
    url: '/super/team/' + teamId,
    method: 'delete'
  })
}

// 导出供应商分类
export function exportTeam(query) {
  return request({
    url: '/super/team/export',
    method: 'get',
    params: query
  })
}


// 查询供应商分类列表
export function listTeamTwo(query) {
  return request({
    url: '/super/team/listTwo',
    method: 'get',
    params: query
  })
}

// 新增供应商分类
export function addTeamTwo(data) {
  return request({
    url: '/super/team/two/addTwo',
    method: 'post',
    data: data
  })
}

// 修改供应商分类
export function updateTeamTwo(data) {
  return request({
    url: '/super/team/two/updateTeamTwo',
    method: 'put',
    data: data
  })
}

// 删除供应商分类
export function delTeamTwo(teamId) {
  return request({
    url: '/super/team/two/' + teamId,
    method: 'delete'
  })
}

// 导出供应商分类
export function exportTeamTwo(query) {
  return request({
    url: '/super/team/two/export',
    method: 'get',
    params: query
  })
}


